package com.chengwt.dao.impl;



import com.chengwt.dao.TrainTypeDao;
import com.chengwt.entity.TrainType;


public class TrainTypeTest {
	public static void main(String args[]){
		TrainTypeDao ttd = new TrainTypeDaoimpl();
		try {
		/*	TrainType tt = new TrainType();
			tt.setTrainTypeName("KY-01");
			
			ttd.saveTrainType(tt);
			ttd.deleteTrainType(6);*/
			TrainType tt2 = new TrainType();
			tt2.setTrainTypeId(2);
			tt2.setTrainTypeName("KKKKK01");
			ttd.updateTrainType(tt2);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
